package yuan.gateway8501.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.time.ZonedDateTime;

/**
 * @version: 1.0
 * @Description: TODO
 * @author: zZmH
 * @date: 2020/09/18 14:02
 */


@Configuration
public class GatewayConfig {

   /* @Bean
    RouteLocator customRoute(RouteLocatorBuilder builder) {
        return builder.routes()
                .route("user-service", r -> r.path("/user/**").uri("http://localhost:9999"))
                .route("product-service", r -> r.path("/product/**").uri("http://localhost:9998"))
                .build();


    }*/


    public static void main(String[] args) {

        System.out.println(ZonedDateTime.now());
    }
}
